package com.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "proxies")
@Data
public class ProxyConfig {

    private List<ProxyMapping> mappings;

    @Data
    public static class ProxyMapping {
        private String path;
        private String url;
    }
}
